Recently in learning installshelled packaging. NET do software, where the MySQL database silent installation script will not write, I novice do not spray. In the way of not writing scripts, occasionally saw this advinceinstaller can be the. exe or. msi installation file repackaging to become a silent installer, the operation steps relatively simple, record to prevent forgetting, but also hope to have a good
MSI is an installation file that requires the system's own msiexec.exe to execute varTempDir =@"D:\UploadFiles\SCADASetupWix.msi"; varStart =NewProcessStartInfo ("msiexec.exe","/I \ ""+tempdir); Start. WindowStyle=Processwindowstyle.normal; Start. CreateNoWindow=true; Process.Start (Start);//. WaitForExit ()However, under 360, a warning pops up. It is considered unsafe to install automatically. There should be a better way.Triggering the installation
Although this is a common task for IT administrators or developers, there are relatively few documents available on the web to find "Remote installation of an MSI package or EXE application." Even in the comments of some forums, it was not possible to achieve this. Actually, it's OK. I will provide two pieces of code in this article, responsible for the remote installation of the
1. If the MSI file cannot be installed, the message "Windows Installer cannot be started" is displayed"
1. Start-run (WIN + r) open it and enter msiexec/unreg and press Enter.2. Then start-run and enter "msiexec/regserver" in "open" and press Enter.
Ii. Solution to failure to install the EXE fileOpen "my computer" and choose "Tools"> "Folder Options"> "file type". The file type with the extension
Remember that the original can be extracted directly from the exe inside the picture, do not know why can not use, the following is through the loading of the Assembly reflects the resources inside the picture or icon;Extract results are stored directly to the compilation directory, do not know left to right, and back to WinForm. //extract icons and pictures from
Will write their own EXE program, but not a good looking exe icon, is not very sorry AH? Many software have very good icons, why don't we extract it? Here's how to use Delphi programming to extract EXE file icon, and save for the ICO format.
The code is as follows:
1. First to make an icon:Using various image editing tools, limit: a.image.width = = Image.height; B.max_length = 256;2. In the Visual Stdio 2015 project right-click Add Resource Import icon format, if you have to use the image library, rather than simply CMD, generated after the3.------------------------------------------------------------------------ Extract exe icon---------------------------------------
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.